//
//  Constants.h
//  DrivingWizard
//
//  Created by apple on 16/8/9.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>



@interface Constants : NSObject
+(void)setObject:(NSString *)keyname andValue:(id)obj;
+(id)getObject:(NSString *)keyname;
+ (BOOL) isMobile:(NSString *)mobileNumbel;
//获取时间戳
+(NSString *)getTimeStamp;
//获取guid
+(NSString *)genUUID;
//json 转换成数组或字典
+(id)jsonToObject:(NSString *)json;
//是否是身份证
+ (BOOL) validateIdentityCard: (NSString *)identityCard;
+ (NSString *)getTime;

+ (BOOL)isNotNil:(NSString *)string;

+ (NSMutableString *)sortString:(NSMutableString *)srcStr;
// 获取当前视图控制器
+ (UIViewController *)activityViewController;

@end
